package _2ChapterTwo._2MoveField.newObject;

public class Account2 {
    private AccountType accountType;

    public double interestForAmount_days(double amount, int days) {
        return get_interestRate() * amount * days / 365;
    }

    public double get_interestRate() {
        return accountType.get_interestRate();
    }

    public void set_interestRate(double value) {
        accountType.set_interestRate(value);
    }
}
